package com.baizhi.utils.spring.bean;

public class Male extends Person {
    private Integer age;

    public Male() {
    }

    public Male(Long id, String name, Integer age) {
        super(id, name);
        this.age = age;
    }

    public void makeMoney() {
        System.out.println(super.getName() + "要赚钱");
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Male{id：" + super.getId() + ", name：" + super.getName() + ", age：" + this.age + "}";
    }
}
